package com.ruoyi.points.mapper;

import java.util.List;

import com.ruoyi.points.domain.QizhongTest;
import com.ruoyi.points.domain.QizhongUser;

/**
 * 用户余额Mapper接口
 *
 * @author ruoyi
 * @date 2024-08-06
 */
public interface QizhongUserMapper
{
    /**
     * 查询用户余额
     *
     * @param id 用户余额主键
     * @return 用户余额
     */
    public QizhongUser selectQizhongUserById(Long id);

    /**
     * 查询用户余额列表
     *
     * @param qizhongUser 用户余额
     * @return 用户余额集合
     */
    public List<QizhongUser> selectQizhongUserList(QizhongUser qizhongUser);

    /**
     * 新增用户余额
     *
     * @param qizhongUser 用户余额
     * @return 结果
     */
    public int insertQizhongUser(QizhongUser qizhongUser);

    /**
     * 修改用户余额
     *
     * @param qizhongUser 用户余额
     * @return 结果
     */
    public int updateQizhongUser(QizhongUser qizhongUser);

    /**
     * 删除用户余额
     *
     * @param id 用户余额主键
     * @return 结果
     */
    public int deleteQizhongUserById(Long id);

    /**
     * 批量删除用户余额
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteQizhongUserByIds(Long[] ids);


    public int updateMoney(QizhongUser qizhongUser);

    QizhongUser selectQizhongUserBySfz(String sfz);

    void upMoney(QizhongUser qizhongUser);

    QizhongTest selectQizhongUserByName(String name);

    int sendMoney(QizhongUser qizhongUser);
}
